<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>录入成绩</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body>
<%@include file="teaindex.jsp" %>
<div style="width: 70%;margin-left: 15%;">

<form class="form-inline" action="addgrade">
  <div class="input-group mb-2 mr-sm-2">
    <div class="input-group-prepend">
      <div class="input-group-text">学号</div>
    </div>
    <input type="text" class="form-control" name="sno" id="inlineFormInputGroupUsername2" placeholder="请输入学号">
  </div>
  
  <div class="input-group mb-2 mr-sm-2">
    <div class="input-group-prepend">
      <div class="input-group-text">成绩</div>
    </div>
    <input type="text" class="form-control" name="grade" id="inlineFormInputGroupUsername2" placeholder="请输入成绩">
  </div>

  
  <div class="input-group mb-3">
  <div class="input-group-prepend">
    <label class="input-group-text" for="inputGroupSelect01">选择课程</label>
  </div>
  <select class="custom-select" name="cno" id="inputGroupSelect01">
    <c:forEach var="course" items="${courseByTid }" >
    <option value="${course.cno }">${course.cname }</option>
    </c:forEach>
  </select>
</div>
  

  <button type="submit" class="btn btn-primary mb-2" onclick="oneadd">录入</button>
  
</form>
<form class="form-inline" action="batchaddgrade" method="post" enctype="multipart/form-data">
 <div class="input-group mb-3">
  <div class="input-group-prepend">
    <span class="input-group-text" id="inputGroupFileAddon01">选择表格</span>
  </div>
  <div class="custom-file">
    <input type="file" class="custom-file-input" name="file" id="inputGroupFile01" aria-describedby="inputGroupFileAddon01">
    <label class="custom-file-label" for="inputGroupFile01">选择文件</label>
  </div>
</div>
<div class="input-group mb-3">
  <div class="input-group-prepend">
    <label class="input-group-text" for="inputGroupSelect01">选择课程</label>
  </div>
  <select class="custom-select" name="cno" id="inputGroupSelect01">
    <c:forEach var="course" items="${courseByTid }" >
    <option value="${course.cno }">${course.cname }</option>
    </c:forEach>
  </select>
</div>
  
  <button type="submit" class="btn btn-primary mb-2" >批量录入</button>
</form>

</div>
</body>
</html>